package cn.bdqn.mh.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysmanVO {
    @NotBlank(message = "用户名必须输入")
    private String name;
    @NotBlank(message = "登录密码不能为空")
    @Pattern(regexp = "\\w{5,}",message = "密码至少5位以上")
    private String pwd;
}
